package org.lg.dao;


import org.lg.entity.Sc;
import org.lg.page.PageInfo;

import java.util.List;


public interface ScDao {


    /**
     * 分页查询选课记录
     * @param pageInfo
     * @return
     */

    public List<Sc> getScBySnoAndByPage(PageInfo pageInfo) throws Exception;

    /**
     * 根据主键查询的选课记录关联班级和班主任信息
     * @param scno
     * @return
     * @throws Exception
     */
//
//    public Sc selectByPrimaryKeyWithCourse(String scno)  throws Exception;

    
    public Sc getScByScno(String scno) throws Exception;

    public List<Sc> getScBySno(String sno) throws Exception;

    
    public Integer addSc(Sc sc) throws Exception;

    
    public Integer editSc(Sc sc) throws Exception;


}
